// 该工具函数用于token的存取删

const TOKENKEY = 'token_key'

const getToken = ()=>{
    return localStorage.getItem(TOKENKEY) || ''
}

const setToken = (token)=>{
    return localStorage.setItem(TOKENKEY,token)
}

const removeToken = ()=>{
    return localStorage.removeItem(TOKENKEY)
}

export{
    getToken,
    setToken,
    removeToken
}